﻿<Window x:Class="AttendanceAccounting.Windows.Attendance"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:AttendanceAccounting.Windows"
        mc:Ignorable="d"
        Title="Посещаемость" Height="700" Width="500"
        WindowStyle="ToolWindow"
        WindowStartupLocation="CenterScreen"
        MinHeight="700" MinWidth="500"
        MaxHeight="700" MaxWidth="500" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <StackPanel>
                <Label Content="Выберите дату:"/>
                <DatePicker/>
            </StackPanel>
            <Grid Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="67"/>
                    <ColumnDefinition Width="40"/>
                    <ColumnDefinition Width="40"/>
                    <ColumnDefinition Width="40"/>
                    <ColumnDefinition Width="40"/>
                </Grid.ColumnDefinitions>
                <Label Content="П" Grid.Column="1"
                       VerticalAlignment="Bottom"
                       ToolTip="Посетил занятие"/>
                <Label Content="Н" Grid.Column="2"
                       VerticalAlignment="Bottom"/>
                <Label Content="Б" Grid.Column="3"
                       VerticalAlignment="Bottom"/>
                <Label Content="З" Grid.Column="4"
                       VerticalAlignment="Bottom"/>
            </Grid>
        </Grid>
        <ListBox x:Name="listSkip"
                 Grid.Row="1" Margin="5"
                 ItemsSource="{Binding}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="300"/>
                            <ColumnDefinition Width="40"/>
                            <ColumnDefinition Width="40"/>
                            <ColumnDefinition Width="40"/>
                            <ColumnDefinition Width="40"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Path=FullName}"/>
                        <RadioButton Grid.Column="1" />
                        <RadioButton Grid.Column="2" IsChecked="{Binding Path=Net}"/>
                        <RadioButton Grid.Column="3" IsChecked="{Binding Path=Bolezn}"/>
                        <RadioButton Grid.Column="4"/>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button Grid.Row="2" 
                Height="20" 
                Width="100" 
                HorizontalAlignment="Right"
                Margin="0 0 20 0"
                Content="Сохранить"/>
    </Grid>
</Window>
